package day04extend;

import java.util.Scanner;

public class NumDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num = scan.nextInt();
        if (num > 0) {
            System.out.println("输入的数字是正数");
        } else if (num < 0) {
            System.out.println("输入的数字是负数");
        } else {
            System.out.println("输入的数字是0");
        }
    }
}
